package com.example.amphibians.data

import com.example.amphibians.network.Amphibian
import com.example.amphibians.network.AmphibianApiService

interface AmphibianRepository {
    suspend fun getAmphibians(): List<Amphibian>
}

class NetworkAmphibianRepository(private val amphibianService: AmphibianApiService) : AmphibianRepository {
    override suspend fun getAmphibians(): List<Amphibian> {
        return amphibianService.getAmphibians()
    }
}